package cn.yoyo.service;

import cn.yoyo.entity.LargeFile;
import cn.yoyo.mapper.LargeFileMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LargeFileServiceImpl implements LargeFileService {
    @Autowired(required = false)
    LargeFileMapper largeFileMapper;

    @Override
    public List<LargeFile> findAll() {
        return largeFileMapper.findAll();
    }

    @Override
    public LargeFile findById(String id) {
        return largeFileMapper.findById(id);
    }

    @Override
    public int add(LargeFile largeFile) {
        return largeFileMapper.add(largeFile);
    }

    @Override
    public int delete(String id) {
        return largeFileMapper.delete(id);
    }
}
